﻿using System.ComponentModel.DataAnnotations;
using System.Xml.Serialization;

namespace SelfService.HaiTai.Models;

[XmlRoot("req")]
public class RechargeCheckRequest
{
    /// <summary>
    /// 医院ID
    /// Example: 100369001
    /// </summary>
    [XmlElement("hospitalId")]
    [Required(ErrorMessage = "医院ID不能为空")]
    public string HospitalId { get; set; }
    
    /// <summary>
    /// 支付订单号
    /// Example: a003692023042700802
    /// </summary>
    [XmlElement("healthCardNo")]
    [Required(ErrorMessage = "卡号")]
    public string HealthCardNo { get; set; }
    
    /// <summary>
    /// 患者ID
    /// Example: 1568534
    /// </summary>
    [XmlElement("patientId")]
    [Required(ErrorMessage = "患者ID不能为空")]
    public string PatientId { get; set; }
    
    /// <summary>
    /// 患者姓名
    /// </summary>
    [XmlElement("patientName")]
    public string PatientName { get; set; }
    
    /// <summary>
    /// 身份证号码
    /// </summary>
    [XmlElement("idCardNo")]
    public string IdCardNo { get; set; }
    
    /// <summary>
    /// 手机号码
    /// </summary>
    [XmlElement("phone")]
    public string Phone { get; set; }
    
    /// <summary>
    /// 充值金额
    /// Example: 550
    /// </summary>
    [XmlElement("payAmount")]
    [Required(ErrorMessage = "充值金额不能为空")]
    public int PayAmount { get; set; }
}